import request from '@/utils/request';

// 获取用户列表
export function fetchUsers(data) {
    return request.get('/users',data);
}

export function loginByNameEmail(data) {
    return request.post('/users/login',data);
}

// 创建用户
export function createUser(data) {
    return request.post('/users', data);
}


// 删除用户
export function deleteeUsers(data) {
    return request.post('/users/delete', data);
}